package com.itheima.stock.mapper;

import com.itheima.stock.pojo.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 久思
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2023-09-24 15:22:07
* @Entity com.heima.stock.pojos.SysRole
*/
@Mapper
public interface SysRoleMapper {

    /**
     * 根据用户id查询角色信息
     * @param userId
     * @return
     */
    List<SysRole> getRoleByUserId(@Param("userId") String userId);
    List<SysRole> findAll();

    List<SysRole> getById(@Param("roleIds") List<Long> roleIds);
}
